package net.chrisrichardson.ormunit.hibernate;

import org.hibernate.engine.CascadeStyle;
import org.hibernate.mapping.ManyToOne;
import org.hibernate.mapping.Property;

public class ToOnePropertyMapping extends FieldMapping {

	private final ManyToOne value;

	public ToOnePropertyMapping(Property property, ManyToOne value) {
		super(property);
		this.value = value;
	}

	public ToOnePropertyMapping cascade(CascadeStyle cascade) {
		assertCascade(cascade);
		return this;
	}

}
